package com.ifonly.activerecord.tx;

import java.sql.Connection;

/**
 * @author ifonly
 * @version 1.0 2016-01-21 10:54
 * @since JDK 1.6
 */
public enum TransactionIsolation {

    TRANSACTION_NONE(Connection.TRANSACTION_NONE),
    TRANSACTION_READ_UNCOMMITTED(Connection.TRANSACTION_READ_UNCOMMITTED),
    TRANSACTION_READ_COMMITTED(Connection.TRANSACTION_READ_COMMITTED),
    TRANSACTION_REPEATABLE_READ(Connection.TRANSACTION_REPEATABLE_READ),
    TRANSACTION_SERIALIZABLE(Connection.TRANSACTION_SERIALIZABLE);

    public final int value;

    TransactionIsolation(int value) {
        this.value = value;
    }

}
